package com.rz.javaSpringBoot.modules.account.service;

import com.github.pagehelper.PageInfo;
import com.rz.javaSpringBoot.modules.account.entity.Resource;
import com.rz.javaSpringBoot.modules.common.entity.Result;
import com.rz.javaSpringBoot.modules.common.entity.SearchBean;

import java.util.List;

/**
 *  Resource Service
 */
public interface ResourceService {

	Result<Resource> insertResource(Resource resource);

	Result<Resource> updateResource(Resource resource);

	Result<Object> deleteResourceById(int id);
	
	Resource getResourceById(int id);
	
	List<Resource> getResourcesByRoleId(int roleId);
	
	PageInfo<Resource> getResourcesBySearchBean(SearchBean searchBean);
}
